package com.nycreativity.elecreativity.entity.vo

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

/**
 * 分页通用返回参数
 */
@ApiModel(value = "分页参数", description = "分页通用返回参数")
class PageDataVO<T> {
    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码")
    var currentPage: Int? = null

    /**
     * 每页数据条数
     */
    @ApiModelProperty(value = "每页数据条数")
    var pageSize: Int? = null

    /**
     * 总页数
     */
    @ApiModelProperty(value = "总页数")
    var pages: Int? = 0

    /**
     * 总记录数
     */
    @ApiModelProperty(value = "总记录数")
    var total: Int? = 0

    /**
     * 记录
     */
    @ApiModelProperty(value = "数据")
    var records: List<T>? = null
}